Returns depreciation and adjustment transactions for assets. Transactions are returned ordered by updatedAt in ascending order (oldest to newest). Use startTime parameter for incremental sync.
Rate limit: 5 requests/sec (learn more about rate limits here).
To use this endpoint, select Read Assets under the Assets category when creating or editing an API token. Learn More.
Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
curl --request GET \
--url https://api.samsara.com/assets/depreciation \
--header 'Authorization: Bearer <token>'{
"data": [
{
"amount": {
"amount": "640.2",
"currency": "usd"
},
"assetId": "281474993384538",
"createdAt": "2024-12-05T10:30:00Z",
"eventTime": "2024-11-30T23:59:59Z",
"id": "9814a1fa-f0c6-408b-bf85-51dc3bc71ac7",
"transactionType": "depreciation",
"updatedAt": "2024-12-05T10:30:00Z",
"costCenterId": "5523a39f-42ef-4820-83d0-dfe73dbe7853",
"note": "November 2024 monthly depreciation"
}
],
"pagination": {
"endCursor": "MjkY",
"hasNextPage": true
}
}Documentation Index
Fetch the complete documentation index at: https://samsara-showcase.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
RFC 3339 timestamp. Returns transactions updated after this time. Compared against updatedAt. If not provided, returns all transactions. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).
RFC 3339 timestamp. Returns transactions updated before this time. Compared against updatedAt. If not provided, behaves as an unending feed of changes. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).
Filter by asset IDs. Up to 50 ids.
If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
curl --request GET \
--url https://api.samsara.com/assets/depreciation \
--header 'Authorization: Bearer <token>'{
"data": [
{
"amount": {
"amount": "640.2",
"currency": "usd"
},
"assetId": "281474993384538",
"createdAt": "2024-12-05T10:30:00Z",
"eventTime": "2024-11-30T23:59:59Z",
"id": "9814a1fa-f0c6-408b-bf85-51dc3bc71ac7",
"transactionType": "depreciation",
"updatedAt": "2024-12-05T10:30:00Z",
"costCenterId": "5523a39f-42ef-4820-83d0-dfe73dbe7853",
"note": "November 2024 monthly depreciation"
}
],
"pagination": {
"endCursor": "MjkY",
"hasNextPage": true
}
}